<?php
 /* @var $model Contact */
?>
<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'contact-form',
    'enableAjaxValidation' => false,
    'enableClientValidation' => true,
    'clientOptions' => array(
	'validateOnSubmit' => true,
    ),
	));
?>
<table border="0" cellpadding="0" cellspacing="0">
    <tr>
	<td class="label required" ><?php echo $form->labelEx($model, 'name'); ?></td>
	<td class="input">
	    <?php echo $form->textField($model, 'name', array('style' => 'width:300px')); ?>
	    <?php echo $form->error($model, 'name'); ?>
	</td>
    </tr>
    <tr>
	<td class="label required"><?php echo $form->labelEx($model, 'email'); ?></td>
	<td class="input">
	    <?php echo $form->textField($model, 'email', array('style' => 'width:300px')); ?>
	    <?php echo $form->error($model, 'email'); ?> 
	</td>
    </tr>
    <tr>
	<td class="label required"><?php echo $form->labelEx($model, 'company'); ?></td>
	<td class="input">
	    <?php echo $form->textField($model, 'company'); ?>
	    <?php echo $form->error($model, 'company'); ?>
	</td>
    </tr>
    <tr>
	<td class="label"><?php echo $form->labelEx($model, 'phone'); ?></td>
	<td class="input">
	    <?php echo $form->textField($model, 'phone'); ?>
	    <?php echo $form->error($model, 'phone'); ?>
	</td>
    </tr>
    <tr>
	<td class="label"><?php echo $form->labelEx($model, 'role'); ?></td>
	<td class="input">
	    <?php echo $form->textField($model, 'role'); ?>
	    <?php echo $form->error($model, 'role'); ?>
	</td>
    </tr> 
    <tr>
	<td class="label required" style="width: 140px; vertical-align: top">
	    <?php echo $form->labelEx($model, 'comment', array('label' => 'Comment/Question')); ?>
	</td>
	<td class="input">
	    <?php echo $form->textArea($model, 'comment', array('class' => 'txt-comment', 'style' => 'width:300px; height:100px')); ?>
	    <?php echo $form->error($model, 'comment'); ?>
	</td>                                    
    </tr>
    <tr>
	<td class="label" style="vertical-align: top"><?php echo $form->labelEx($model, 'Security Code'); ?></td>
	<td class="input">                                        
	    <div class="txt_captcha" style="float: left;width: 187px;">
		<?php echo $form->textField($model, 'securityCode', array('class' => 'txt-code')); ?>                            
	    </div>
	    <div class="img_captcha" style="float: left">
		<?php
		$this->widget('Captcha', array(
		    'showRefreshButton' => false,
		    'refresh' => $refreshCaptcha,
			)
		);
		?>
	    </div>
	    <?php echo $form->error($model, 'securityCode'); ?>
	</td>
    </tr>
    <tr>
	<td></td>
	<td>
	    <?php
	    echo CHtml::submitButton(t("BTN_SUBMIT"), array(
		'class' => 'btnSave'
	    ));
	    ?>  
	</td>
    </tr>
</table>
<?php $this->endWidget(); ?>